var v_list;
$(function(){
	v_list = new Vue({
		el: '#message-detail',
		data: {
			messageId:parseQueryString().messageId,
			content:''
		},
		methods: {
			getDetail: function() {
				this.$http.get('../../message/detail.do', {
					messageId:this.messageId
				}).then(function(res) {
					//接收后端传来的数据
					console.log(toJson(res.data));
					if(res.data.success){
						this.content = res.data.data.content;
					}
					
				}, function(res) {
					console.log("getDetail()出错:"+toJson(res));
				});
			}
		},
		ready: function() {
			//初始化获得总页面数和列表数据
			$("#left").load('../left.html');
			this.getDetail();
		}
	});
});		